/**
 * 
 */
package com.rst.org.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author JavaDeamon
 *
 */
@Entity
@Table(name="DEPARTMENT_DETAILS")
public class DepartmentDetailsDTO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6452033933441450583L;
	public Integer departmentId;
	public String departmentName;
	public String departmentCode;
	
	
	/**
	 * @return the departmentId
	 * primary key
	 * autogenerated id
	 * cannot be null
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="DEPTT_ID", length=10)
	public Integer getDepartmentId() {
		return departmentId;
	}
	/**
	 * @return the departmentName
	 * contains department name
	 * cannot be null
	 * length is 50
	 */
	@Column(name="DEPTT_NAME", nullable=false, length=50)
	public String getDepartmentName() {
		return departmentName;
	}
	/**
	 * @return the departmentCode
	 * contains department code
	 * cannot be null
	 * length is 10
	 */
	@Column(name="DEPTT_CODE", nullable=false, length=10)
	public String getDepartmentCode() {
		return departmentCode;
	}
	/**
	 * @param departmentId the departmentId to set
	 */
	public void setDepartmentId(Integer departmentId) {
		this.departmentId = departmentId;
	}
	/**
	 * @param departmentName the departmentName to set
	 */
	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}
	/**
	 * @param departmentCode the departmentCode to set
	 */
	public void setDepartmentCode(String departmentCode) {
		this.departmentCode = departmentCode;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "DepartmentDetailsDTO [departmentId=" + departmentId
				+ ", departmentName=" + departmentName + ", departmentCode="
				+ departmentCode + "]";
	}
}
